package com.itheima.design.mode.decorator;

/**
 * ConcreteDecorator具体装饰角色
 */
public class WaterCar extends SuperCar{

    public WaterCar(ICar car) {
        super(car);
    }

    public void water(){
        System.out.println("可以在水上跑");
    }

    @Override
    public void move() {
        super.move();
        water();
    }
}
